﻿GControl = function(printable, selectable) 
{
	/// <summary>Creates the prototype instance for a new control class. Flag printable indicates that the control should be visible in the print output of the map. Flag selectable indicates that the control will contain text that should be selectable.</summary>
	/// <param name="printable" type="Boolean" optional="true">(optional) Is control printable?</param>
	/// <param name="selectable" type="Boolean" optional="true">(optional) Is control selectable?</param>
	/// <returns type="Object"></returns>
}

GControl.prototype = 
{
	printable: function() 
	{
		/// <summary>Returns to the map if the control should be printable.</summary>
		/// <returns type="Boolean"></returns>
	},
	
	selectable: function() 
	{
		/// <summary>Returns to the map if the control contains selectable text.</summary>
		/// <returns type="Boolean"></returns>
	},
	
	initialize: function(map) 
	{
		/// <summary>Will be called by the map so the control can initialize itself. The control will use the method GMap2.getContainer() to get hold of the DOM element that contains the map, and add itself to it. It returns the added element.</summary>
		/// <param name="map" type="GMap2">The map to initialize.</param>
		/// <returns domElement="true"></returns>
	},
	
	getDefaultPosition: function() 
	{
		/// <summary>Returns to the map the position in the map view at which the control appears by default. This will be overridden by the second argument to GMap2.addControl().</summary>
		/// <returns type="	GControlPosition"></returns>
	}
}

